package com.emergency.db.domain.nuclear;

import com.emergency.base.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;

//压力容器状态表
@Entity
@Table(name = "bas_nuclear_vessel")
public class Vessel extends BaseEntity {

    private double intact;//压力容器完整性,百分比

    private double avgTemp;//压力容器平均温度

    private double avgWater;//压力容器内平均水位

    private double hydrogen;//压力容器内平均氢气浓度

    @JsonIgnore
    @OneToOne(targetEntity = NuclearInside.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "inside_id", referencedColumnName = "id")
    private NuclearInside inside;

    public double getIntact() {
        return intact;
    }

    public void setIntact(double intact) {
        this.intact = intact;
    }

    public double getAvgTemp() {
        return avgTemp;
    }

    public void setAvgTemp(double avgTemp) {
        this.avgTemp = avgTemp;
    }

    public double getAvgWater() {
        return avgWater;
    }

    public void setAvgWater(double avgWater) {
        this.avgWater = avgWater;
    }

    public double getHydrogen() {
        return hydrogen;
    }

    public void setHydrogen(double hydrogen) {
        this.hydrogen = hydrogen;
    }

    public NuclearInside getInside() {
        return inside;
    }

    public void setInside(NuclearInside inside) {
        this.inside = inside;
    }
}
